﻿using System;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

namespace FatFreeFitness._secured.management
{
    public partial class ManageResources : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
        {
            RadGrid1.DataBind();
        }

        protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item.ItemType == GridItemType.Item && e.Item.ItemIndex == 0)
            {
                // hide edit and delete buttons for default selection
                e.Item.Cells[6].Controls[0].Visible = false;
                e.Item.Cells[7].Controls[0].Visible = false;
            }
        }
    }
}